package com.bristua.mall.admin.user.controller;

import com.bristua.mall.admin.common.bean.Result;
import com.bristua.mall.admin.common.utils.HandleResultUtil;
import com.bristua.mall.admin.user.biz.QueryUserDetailBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/2.
 */
@RestController
public class QueryUserDetailController {

    @Autowired
    private QueryUserDetailBiz queryUserDetailBiz;
    @PostMapping(value="/admin/user/query/detail/{userId}")
    public Result queryUserDetail(@PathVariable(value="userId") String userId){
        return HandleResultUtil.querySuccessResult(queryUserDetailBiz.queryUserDetail(userId));
    }
}
